home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20031118-20041115 / 000032_mswarbrick@rentokil.com_Tue Dec 2 09:31:21 2003.msg < prev    next >
Internet Message Format  |  2004-11-14  |  1KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
  2. From: mswarbrick@rentokil.com (Mark Swarbrick)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: wierd scripting query via telnet
  5. Date: 2 Dec 2003 02:11:46 -0800
  6. Organization: http://groups.google.com
  7. Lines: 24
  8. Message-ID: <e516d9ec.0312020211.2fa9cb80@posting.google.com>
  9. NNTP-Posting-Host: 213.2.66.194
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1070359906 17415 127.0.0.1 (2 Dec 2003 10:11:46 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Tue, 2 Dec 2003 10:11:46 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14708
  16.  
  17. Hi guys..
  18.  
  19. I'm trying to write a little utility which does the following:
  20.  
  21. connect via telnet to port 1494 (citrix ica) wait about 5 seconds
  22. after connecting and dump to a bash variable the contents of what was
  23. echoed to screen for checking if the citrix machine is working
  24. properly.
  25.  
  26. The citrix ica client just echo's ICAICA until it closes the port.
  27. this takes too long so i just want to script kermit-telnet to keep the
  28. connection open for around 5 seconds and keep the data so I can check
  29. the contents.
  30.  
  31. How would I go about this?
  32.  
  33. So far all i've got is:
  34.  
  35. #!/usr/local/bin/kermit
  36. telnet /nowait 102.12.76.37 1494
  37.  
  38. But this takes ages to run and doesn't dump back the contents... 
  39.  
  40. Many thanks All!
  41.